package morenoapp.model;

import com.jgoodies.binding.beans.Model;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import morenoapp.model.data.MorenoModelFace;
import morenoapp.model.impl.MorenoModelImpl;

/**
 *
 * @author dmitry.mamonov
 */
public class MorenoModelFactory {
    public static MorenoModelFace createModelProxy(){
        return (MorenoModelFace) Proxy.newProxyInstance(
                MorenoModelFactory.class.getClassLoader(),
                new Class<?>[]{MorenoModelFace.class}, new ProxyInvocationHandler());
    }

    static class ProxyInvocationHandler extends Model implements InvocationHandler {
        MorenoModelImpl model;

        public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
            return null;
        }
        
    }
}
